Removes the cached version of session data for all activities in the non-active session. This method should be called prior to an application directly modifying any data within LearningStore pertaining to this attempt.
Parent Type: StoredLearningSession
Namespace: Microsoft.LearningComponents.Storage
Assembly: Microsoft.LearningComponents.Storage.dll
| C# |
|
public void InvalidateSessionCache () |
| Exception type | Condition |
| InvalidOperationException | Thrown if the session represents an active attempt. That is, if AttemptStatusis Active. |
If an application makes changes to data in LearningStore that is associated with this session, it should call this method to remove the cached version of the data. This allows future accesses by the Review or RandomAccess views to rebuild the cache. Calling this method while an attempt in the session is active is not valid and will throw an InvalidOperationException.